package com.xiu.concurrency.pratice;

public class Pratice1 implements Runnable{
	public Pratice1() {
		System.out.println("start");
	}
	@Override
	public void run() {
		System.out.println("run");
		Thread.yield();
		System.out.println("run");
		Thread.yield();
		System.out.println("run");
		Thread.yield();
		return;
	}

	public static void main(String[] args) {
		for (int i = 0; i < 5; i++) {
			new Thread(new Pratice1()).start();
		}
		System.out.println("stop");
	}
}
